//
//  GPContactCell.h
//  Keping
//
//  Created by 23 on 2017/12/7.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, GPContactCellType) {
    GPContactCellTypeContact            = 0,        //联系人
    GPContactCellTypeHistory            = 1,        //聊天历史
    GPContactCellTypeSearchContact      = 2,        //搜索联系人
};

@class GPContactModel;

typedef void(^GPContactAddFriendCallback)(GPContactModel *contactModel);    //添加好友
typedef void(^GPContactLongPressCallback)(GPContactModel *contactModel);    //长按
typedef void(^GPContactAcceptFriendCallback)(GPContactModel *contactModel); //接受添加好友

@interface GPContactCell : UITableViewCell

/**model*/
@property(nonatomic,strong) GPContactModel *contact;

/**类型*/
@property(nonatomic,assign) GPContactCellType type;

/**添加好友callback*/
@property(nonatomic,copy) GPContactAddFriendCallback callback;
/**长按回调*/
@property(nonatomic,copy) GPContactLongPressCallback longPressCallback;
/**接受添加好友的callback*/
@property(nonatomic,copy) GPContactAcceptFriendCallback acceptCallback;

@end
